﻿#include "FITKAbaAbstractConstraint.h"


bool Interface::FITKAbaAbstractConstraint::copy(FITKAbstractDataObject *obj)
{
    bool ok = FITKInteractionLocation::copy(obj);
    if (!ok)
        return false;
    FITKAbaAbstractConstraint* c = dynamic_cast<FITKAbaAbstractConstraint*>(obj);
    if (c == nullptr)
        return false;
    m_active = c->m_active;
    return true;
}

bool Interface::FITKAbaAbstractConstraint::getActiveState() const
{
    return m_active;
}

void Interface::FITKAbaAbstractConstraint::setActiveState(bool state)
{
    m_active = state;
}
